<!DOCTYPE html>
<html>
	<head>
		<title>testButton</title>
		<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="js/EventUtil.js"></script>
	</head>
	<body>
		<div id="myDiv" style="background-color:blue;height:100px;width:100px;"></div>
		<script type="text/javascript">
			var div = document.getElementById('myDiv');
			EventUtil.addHandler(div,'mousedown',function(event){
				event = EventUtil.getEvent(event);
				alert(EventUtil.getButton(event));
			});
		</script>
	</body>
</html>